<%@page language="C#" validateRequest="false" MasterPageFile="../tools.master" Title="DataModel" CodeFile="DataModel.aspx.cs" Inherits="C" %>

<asp:content contentPlaceHolderID="Form" runat="server" >
    <style type="text/css">
        td{ width:72px; }
    </style>
    <strong>示例</strong>
注意:每个命名空间中只处理第一个类,多余的类无效
    <pre>
&lt;?xml version="1.0" encoding="utf-8"?>
&lt;code>
    &lt;class name="Class1">
        &lt;property type="int"      name="Id"           value="0" />
        &lt;property type="DateTime" name="DateCreated"  value="DateTime.Now" />
        &lt;property type="string"   name="Name"         value="" />
        &lt;property type="bool"     name="IsThat"       value="true" />
    &lt;/class>
    &lt;class name="Class2">
        &lt;property type="int"      name="Id"           value="0" />
        &lt;property type="DateTime" name="DateCreated"  value="DateTime.Now" />
        &lt;property type="string"   name="Name"         value="" />
        &lt;property type="bool"     name="IsThat"       value="true" />
    &lt;/class>
&lt;/code>
    </pre>
    
    <form action="" method="post">
    <textarea name="code" rows="12" cols="100"></textarea>
    <button>生成</button>
    </form>
</asp:content>

<asp:content contentPlaceHolderID="Code" runat="server" >
<pre>
<%
Response.Write( Handler( Request.Form ) );
%>
</pre>
</asp:content>
